﻿using System;
using System.IO;
using System.Collections.Generic;

namespace DatabaseSynchronizer {

    interface IDBService {

        bool CreateSchemaChangesTable(out string errorMsg);

        bool ExecuteScriptFile(FileInfo scriptFile, out string errorMessage);

        List<int> GetExecutedPatches(out string errorMessage);

        bool IsPatchExecuted(int patchNumber, out string errorMsg);

        bool IsSchemaChangesTableCreated(out string errorMsg);    

        bool IsValidConnectionString(out string errorMsg);

        bool MarkLocalPatchAsExecuted(FileInfo scriptFile, out string errorMsg);

    }
}
